<template>
    <div class="print-wrap">
        <Designer :template="template" @onDesigned="onDesigned" />
    </div>
</template>
<script setup lang="ts">
import { onMounted, ref } from "vue";
import "sv-print/dist/style.css"; // 一般在入口文件(index/main)添加
import { Designer } from "@sv-print/vue3";
let template = ref({});
const onDesigned = (e) => {
    console.log("onDesigned");
    console.log(e);
};
</script>
<style lang="scss" scoped>
.print-wrap {
    height: 100vh;
}
</style>